package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public PageResult findPage(QueryPageBean queryPageBean);
    public void deleteByRoleId(Integer roleId);
    public void add(Role role,Integer[] permissionIds,Integer[] menuIds);
    List<Menu> findAllMenu();
    Role findById(Integer id);
    List<Integer> findCheckMenuIdsByRoleId(Integer id);
    List<Integer> findCheckPermissionIdsByRoleId(Integer id);
    void edit(Role role,Integer[] menuIds,Integer[] permissionIds);
    List<Role> findAllZP();
}
